<template>
    <button @click="init">点此获得位置</button>
</template>

<script>
import AMap from "AMap";

export default {
  setup() {
    const init = () => {
        console.log('位置');
      let map = new AMap.Map("container", {
        center: [116.397428, 39.90923],
        resizeEnable: true,
        zoom: 10,
      });
    };

    return {
        init
    };
  },
};
</script>

<style>
</style>